package cn.net.shuxing.yifu.common.service;

import cn.net.shuxing.yifu.common.bean.ContentSys;
import cn.net.shuxing.yifu.common.mapper.ContentSysMapper;
import cn.net.shuxing.yifu.common.util.CommonExample;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContentSysService extends ContentService<ContentSys, ContentSysMapper> {

    public ContentSys getByInlienLink(String link) {
        CommonExample example = new CommonExample(ContentSys.class);
        example.equals("sysLink", link);
        return getByExampleWithoutComplete(example);
    }

    public List<ContentSys> getStickContentSys(){
        CommonExample example = new CommonExample(ContentSys.class);
        example.equals("state",1);
        List<ContentSys> contentSys = getsByExample(example);
        return contentSys;
    }
}
